package com.xiaozhu.utils;


import com.xiaozhu.enumreation.ChatTypeEnum;

/**
 * @author 朱慧军
 * @version 1.0
 */
public class TypeUtils {

    public static String type(int type){

        ChatTypeEnum chatTypeEnum = ChatTypeEnum.fromCode(type);
        if (chatTypeEnum == null){
            return "未知类型";
        }

        switch (chatTypeEnum) {
            case CHAT_TYPE_ENUM:
                return "普通聊天逻辑";
            case PDF_TYPE_ENUM:
                return "PDF文件读取逻辑";
            case ROMANCE_TYPE_ENUM:
                return "恋爱模拟器逻辑";
            default:
                return "未知类型";
        }
    }
}
